.class public Lcom/xingbook/park/activity/MyLeyuanActivity;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Lcom/xingbook/ui/e;


# instance fields
.field private a:Lcom/xingbook/ui/d;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 3

    const/4 v0, 0x0

    packed-switch p1, :pswitch_data_0

    :goto_0
    :pswitch_0
    if-eqz v0, :cond_0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/MyLeyuanActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040026

    const v1, 0x7f040027

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/MyLeyuanActivity;->overridePendingTransition(II)V

    :cond_0
    return-void

    :pswitch_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_0

    :pswitch_2
    const/16 v1, 0x50

    invoke-static {p0, v1}, Lcom/xingbook/audio/activity/XingAudioMainActivity;->a(Landroid/content/Context;I)V

    goto :goto_0

    :pswitch_3
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/cinema/activity/XingVideoMainActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_0

    :pswitch_4
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/paint/PaintGameAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_0

    :pswitch_5
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/huiben/activity/HuibenMainActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_0

    :pswitch_6
    const-string v1, "\u6682\u65f6\u4e0d\u652f\u6301\u6211\u7684\u76f8\u518c\u529f\u80fd"

    const/4 v2, 0x0

    invoke-static {p0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_7
    const/16 v1, 0x40

    invoke-static {p0, v1}, Lcom/xingbook/audio/activity/XingAudioMainActivity;->a(Landroid/content/Context;I)V

    goto :goto_0

    :pswitch_8
    invoke-virtual {p0}, Lcom/xingbook/park/activity/MyLeyuanActivity;->finish()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_8
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public e()Ljava/lang/String;
    .locals 1

    const-string v0, "\u5b66\u4e60\u4e50\u56ed-\u513f\u7ae5"

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7

    const/4 v4, -0x1

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0, p0}, Lcom/xingbook/ui/d;->a(Landroid/app/Activity;Lcom/xingbook/ui/e;)Lcom/xingbook/ui/d;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    iget-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    invoke-virtual {v0}, Lcom/xingbook/ui/d;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_0

    check-cast v0, Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_0
    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v2, v4, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/MyLeyuanActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    move v4, v3

    move v5, v3

    move v6, v3

    invoke-static/range {v0 .. v6}, Lcom/xingbook/park/ui/a;->a(Landroid/content/Context;Landroid/widget/RelativeLayout;FIIII)Lcom/xingbook/park/ui/a;

    invoke-virtual {p0, v1}, Lcom/xingbook/park/activity/MyLeyuanActivity;->setContentView(Landroid/view/View;)V

    return-void
.end method

.method public onPause()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/d;->setAnimating(Z)V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/MyLeyuanActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    return-void
.end method

.method public onResume()V
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    invoke-virtual {v0}, Lcom/xingbook/ui/d;->a()V

    invoke-static {}, Lcom/xingbook/ting/play/j;->a()Lcom/xingbook/ting/play/j;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/xingbook/ting/play/j;->a()Lcom/xingbook/ting/play/j;

    move-result-object v0

    iget-object v0, v0, Lcom/xingbook/ting/play/j;->g:Lcom/xingbook/ting/play/g;

    sget-object v1, Lcom/xingbook/ting/play/g;->d:Lcom/xingbook/ting/play/g;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/d;->setWindmillViewPause(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/MyLeyuanActivity;->a:Lcom/xingbook/ui/d;

    invoke-virtual {v0, v2}, Lcom/xingbook/ui/d;->setAnimating(Z)V

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/MyLeyuanActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    return-void
.end method
